<?php
// +----------------------------------------------------------------------------
// | Tke团队版权所属 [三十年河东三十年河西,莫欺少年穷.!]
// +----------------------------------------------------------------------------
// | Copyright (c) 2014 http://www.itdaodan.com All rights reserved.
// +----------------------------------------------------------------------------
// | Author: PHP@妖孽 <dino_ma@163.com>
// +----------------------------------------------------------------------------
/**
 +------------------------------------------------------------------------------
 * 签到管理
 +------------------------------------------------------------------------------
 * @version   1.0
 * @since 2014-8-26
 +------------------------------------------------------------------------------
 */
namespace Admin\Controller;
class ConfSignController extends AdminController {

	/**
	 * @todo 签到管理
	 */
// 	public function index(){
// 		//获取列表数据
// // 		$action_list =   M('Action')->where(array('status'=>array('gt',-1)));
// 		$list   =   $this->lists(M('Action'));
// 		int_to_string($list);
// 		$this->assign('_list', $list);
// 		$this->meta_title = '签到管理';
// 		$this->display();
// 	}
	
	/**
     *@todo 签到
     */
    public function add(){
    	if(IS_POST){
        	$res = D('ConfCode')->sign();
            if(!$res){
                $this->error(D('ConfCode')->getError());
            }else{
                $this->success('绑定成功！',U('add'));
            }
    	}else{
            $activity_list = A('Order')->getActivityList(0);
	        $this->meta_title = '信息绑定';
	        $this->assign('activity_list',$activity_list);
	        $this->display('edit');
    	}
    }
   
}
